package com.cms.service.impl;

import com.cms.dao.entity.UserPrimaryEntity;
import com.cms.dao.mapper.UserprimaryMapper;
import com.cms.service.api.IUserPrimaryService;
import com.cms.service.converter.UserConverter;
import com.cms.service.converter.UserPrimaryConverter;
import com.cms.service.dto.UserPrimaryDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author laolang
 * @version 1.0.0
 * @ClassName UserPrimaryServiceImpl
 */
@Service
public class UserPrimaryServiceImpl implements IUserPrimaryService {

    @Autowired
    private UserprimaryMapper userprimaryMapper;

    @Override
    public void save(UserPrimaryDto dto) {

    }

    @Override
    public UserPrimaryDto getById(Integer id) {
        return UserPrimaryConverter.CONVERTER.entityToDto(userprimaryMapper.selectById(id));
    }
}
